package com.validator.service;

import com.validator.entity.EquipmentType;
import com.validator.entity.Order;
import com.validator.entity.PhonePrefix;
import com.validator.util.Page;
import com.validator.util.Result;

import java.util.List;

public interface IOrderValidatorService {

    Result<Page<Order>> listByPage(
            String orderNumber,
            String equipmentType,
            String sn,
            String name,
            String email,
            String phoneNumber,
            String validateTime,
            Integer status,
            String orderBy,
            int page,
            int pageSize);

    Result<Order> addOrder(String orderNumber);

    Result<List<Order>> addOrderByBatch(String[] orderNumbers);

    Result<Order> validateByEquipmentTypeAndOrderNumber(String equipmentType, String orderNumber);

    Result<Order> validOrder(Order order);

    Result<List<PhonePrefix>> listPhonePrefix();

    Result<EquipmentType> addEquipmentType(String type, int status);

    Result<List<EquipmentType>> listEquipmentType();

    Result<Boolean> deleteOrderByOrderNumber(String orderNumber);

    Result<Boolean> deleteEquipmentTypeById(int id);
}
